package com.ktjy.service;

import com.ktjy.mapper.SysUserMapper;
import com.ktjy.pojo.SysUser;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysUserServiceImp implements SysUserService {

    @Autowired
    SysUserMapper sysUserMapper;

    @Override
    public List<SysUser> getSysUserListBiz(SysUser sysUser) {
        return sysUserMapper.getSysUserList(sysUser);
    }

    @Override
    public int addBiz(SysUser sysUser) {
        return sysUserMapper.add(sysUser);
    }

    @Override
    public int deleteByIdBiz(Integer id) {
        return sysUserMapper.deleteById(id);
    }

    @Override
    public SysUser getSysUserByAccountBiz(String account) {
        return sysUserMapper.getSysUserByAccount(account);
    }
}
